package com.gs.process.admin.utils;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shallowUniverse.model.Params;
import org.apache.poi.ss.formula.functions.T;

/**
 * @author: Shuai Guo
 * @description:
 * @date: 2021/9/27
 * @version: 1.0
 */
public class PageUtil {

    public static <T> IPage<T> create(Params<T> params){
        IPage<T> page = new Page<>();
        page.setCurrent(params.getCurrent());
        page.setSize(params.getSize());
        return page;
    }
}
